package com.example.models;

import io.ebean.Model;
import lombok.Data;

import javax.persistence.*;
import java.util.Date;

@Entity
@Table(name = "user_school_info")
@Data
public class UserEduInfo extends Model {
    @Id
    public Integer id;
    public String stuId;
    public String qqNumber;
    public Date enrollment;
    public String hobby;

    @OneToOne
    @JoinColumn(name = "user_id")
    public User user;

    @ManyToOne
    @JoinColumn(name = "school_id")
    public Education education;
}
